encode{
  if (!(msg instanceof PeerWireMessage))   return msg;
  final PeerWireMessage message=(PeerWireMessage)msg;
  io.netty.buffer.ChannelBuffers.dynamicBuffer
}
setHandshaked{ }
